<div   class="popup_window_css" id="sample1" >
	<form action="pay.php" method="post">
	<input type="hidden" name='nofullsize' value="1"/>
	<input type="hidden" name='months' value="<?=$month?>"/>
	<input type="hidden" name='years' value="<?=$year?>"/>
	<table class="popup_window_css" style="width: 100%;" >
		<tr  class="popup_window_css" >
			<td    class="popup_window_css">
				<div   class="popup_window_css_head" >
					<img src="images/close.gif" alt="" width="12" height="12" /><?=$l_pay_listcategory1?>
				</div>
				<div   class="popup_window_css_body" style="min-height:100px;padding-top: 2px;padding-bottom: 2px;" id="Category">
					<table cellpadding="0" cellspacing="1" border="0" class="ftable1" style="width: 100%;margin:auto;">
			<tr align='center'>
				<th style="width:10px;"><img onclick="addCategory()" src="images/plus.png" style="width:20px;height:20px;cursor:pointer;" title="<?php echo $l_add;?>" /></th>
				<th><?=$l_pay_category?></th>
				<th style="width: 90px;"><?=$l_pay_dateStart?></th>
				<th style="width: 60px;"><?=$l_pay_regular?></th>
				<th style="width: 60px;"><?=$l_methodsPayment_contract?></th>
				<th style="width: 60px;"><?=$l_payment_money?></th>
			</tr>
			
		<?php 
		$k=1;
		foreach ($mang1 as $value => $giatri){
				if ($giatri[4]==0){
			?>
			<tr align='center'>
				<td><img onclick="delCategory(<?php echo $giatri[0];?>)" src="images/del.png" style="width:20px;height:20px;cursor:pointer;" title="<?php echo $l_delete;?>" /></td>
				<td><input id="idCategory<?=$k?>" name="idCategory[]" value='<?=$giatri[0]?>'  type="hidden"/><input id="nameCategory<?=$k?>" name="nameCategory[]" onchange="chnameCategory(this.value,<?=$giatri[0]?>)" onkeyup="chnameCategory(this.value,<?=$giatri[0]?>)" value='<?=$giatri[1]?>' style="height: 24px;width: 330px;"/></td>
				<td><input id="dateStart<?=$k?>" name="dateStart[]" onchange="chdateStart(this.value,<?=$giatri[0]?>)" onkeyup="chdateStart(this.value,<?=$giatri[0]?>)" value='<?=$giatri[2]?>' style="height: 24px;width: 100px;text-align: center;"/></td>
				<td>
					<select  id="regular<?=$k?>" name="regular[]" onchange="chregular(this.value,<?=$giatri[0]?>)" onkeyup="chregular(this.value,<?=$giatri[0]?>)" style="height: 24px">
						<?php for ($i=1;$i<13;$i++){
							if($giatri[3]==$i){
							?>
						<option value="<?=$i?>" selected="selected"><?=$i?></option>
							<?php }else{?>
						<option value="<?=$i?>"><?=$i?></option>
						<?php }
							}?>
					</select>
				</td>
				<td style="text-align: left;">
					<select  id="method<?=$k?>" name="method[]" onchange="chmethod(this.value,<?=$giatri[0]?>)" onkeyup="chmethod(this.value,<?=$giatri[0]?>)" style="height: 24px;">
						<?php for ($i=0;$i<=5;$i++){
							$l_method="";
							if($i==0)
								$l_method=$l_method0;
							if($i==1)
								$l_method=$l_method1;
							if($i==2)
								$l_method=$l_method2;
							if($i==3)
								$l_method=$l_method3;
							if($i==4)
								$l_method=$l_method4;
							if($i==5)
								$l_method=$l_method5;
									
							if($giatri[5]==$i){
							?>
						<option value="<?=$i?>" selected="selected"><?=$l_method?></option>
							<?php }else{?>
						<option value="<?=$i?>"><?=$l_method?></option>
						<?php }
							}?>
					</select>
				</td>
				<td><input id="payment<?=$k?>" name="payment[]" onchange="chpayment(this.value,<?=$giatri[0]?>)" onkeyup="chpayment(this.value,<?=$giatri[0]?>)" value='<?=$giatri[6]?>' style="height: 24px;width: 100px;text-align: right; padding-right: 5px"/></td>
			</tr>
		<?php 
				$k++;
				}
		}?>
			
		</table> 
					
					
				</div>
				<div   class="popup_window_css_foot">
					<input style="margin:12px 5px 0 0; font-size: 12px;" type="submit" name="xacnhan"  value="<?php echo $l_xacnhan;?>" class="btn_choose"/>
					<input style="margin:12px 5px 0 0; font-size: 12px;" type="button" onclick="LoadCategory()" value="<?php echo $l_cancel;?>" class="btn_choose"/>
				</div>
			</td>
		</tr>
	</table>
	</form>
</div>